var express = require('express'),
    bodyParser = require('body-parser'),
    _ = require('underscore'),
    json = require('./movies.json'),
    app = express(),
    routers = require('./routers');

app.set('port', process.env.PORT || 3500);

app.use(bodyParser.urlencoded());
app.use(bodyParser.json());

routers(app);
var server = app.listen(app.get('port'), function () {
    console.log('Server up: http://localhost:' + app.get('port'));
})

